<mat-card class="card">
  <mat-card-header>
    <h3 mat-card-title>
      {{ 'Profile' | translate }}
    </h3>
  </mat-card-header>

  <mat-card-content>
    @if (user().full_name) {
      <p class="row">
        <span class="label">{{ 'Full Name' | translate }}:</span>
        <span class="value">{{ user().full_name }}</span>
      </p>
    }

    @if (user().email) {
      <p class="row">
        <span class="label">{{ 'Email' | translate }}:</span>
        <span class="value">{{ user().email }}</span>
      </p>
    }

    <p class="row">
      <span class="label">{{ 'Group' | translate }}:</span>
      <span class="value">{{ user().group?.bsdgrp_group || '-' }}</span>
    </p>

    <p class="row">
      <span class="label">{{ 'Type' | translate }}:</span>
      <span class="value">{{ type() }}</span>
    </p>

    <p class="row">
      <span class="label">{{ 'Home Directory' | translate }}:</span>
      <span class="value">
        {{ hasHomeDirectory() ? user().home : ('None' | translate) }}
      </span>
    </p>

    <p class="row">
      <span class="label">{{ 'UID' | translate }}:</span>
      <span class="value">{{ user().uid }}</span>
    </p>
  </mat-card-content>
</mat-card>

